package com.itxx.Arrays.demo;

import java.util.Arrays;

public class Demo1 {
    public static void main(String[] args) {
        /*
         * Arrays    用于服务数组
         * */
        int[] arr = {1, 2, 3, 4, 5};

        /*
            toString()  将数组通过String形式打印出来
        * */
        System.out.println(Arrays.toString(arr));
        /*
         * sort()   将数组进行排序
         * */
        int[] arr1 = {2, 61, 77, 88, 4, 2, 67, 82, 7, 8, 93, 23, 5};
        Arrays.sort(arr1);
        System.out.println(Arrays.toString(arr1));

    }
}
